#include <stdio.h>


int main(int argc, char const *argv[])
{
	int array[10] = {2,3,4,1,5,9,6,7,11,10};
	
	for (int i = 1; i < 10; ++i)
	{
		int temp = array[i];
		int len = i;
		for (int k = len - 1; k >= 0 ; --k)
		{
			if(temp<array[k]){
				array[k+1] = array[k];
				array[k] = temp;
			}
		}
	}
	for (int i = 0; i < 10; ++i)
	{
		printf("%d ",array[i] );
	}

	return 0;
}